Package-level declarations

Types

Link copied to clipboard
annotation class ExperimentalShadowGadgets

General, all-purpose annotation for any public API that may change.

Link copied to clipboard

An implementation of ViewPathProvider that tries to set the Path from a MaterialShapeDrawable in the target's background.

Link copied to clipboard

Helper class that blends the two native shadow colors into a single value appropriate for use with outlineShadowColorCompat.

Link copied to clipboard

General Exception class for known possible error states.

Link copied to clipboard

Helper object that allows for sensible namespacing of standalone or otherwise unique miscellanea.

Link copied to clipboard

The possible shadow modes.

Link copied to clipboard

Options for locations in the View hierarchy's draw routine where a target's library shadow can be inserted.

Link copied to clipboard
fun interface ViewPathProvider

An interface through which to set the clip Path for irregularly shaped Views on API levels 30 and above.

Properties

Link copied to clipboard

The current state of the clipped shadow fix for the receiver View.

Link copied to clipboard

Determines whether the color compat mechanism should be forced if the current API level is 28 or above.

Link copied to clipboard

A patch fix for potential clip defects on API levels 24..28, when a target's parent ViewGroup has a non-identity matrix applied.

Link copied to clipboard

An implementation of ViewPathProvider that tries to set the Path from a MaterialShapeDrawable in the target's background.

Link copied to clipboard

The current color compat value for the receiver View.

Link copied to clipboard

The ViewPathProvider used by clipOutlineShadow for irregular shapes on API levels 30+.

Link copied to clipboard

The current ShadowMode of the receiver's shadow.

Link copied to clipboard

The current ShadowPlane for the receiver View's library shadow.

Functions

Link copied to clipboard

Callback for ShadowMode changes. The target View is passed as the receiver for action, allowing for unqualified access to its members.

Link copied to clipboard

Convenience for completely resetting a target's shadow state, removing the library shadow if present, and restoring the (presumably broken) native one.

Link copied to clipboard

Allows for efficient modification of multiple shadow properties at once, pausing potentially redundant internal operations until block completes. This functionality is particularly helpful in recycling Adapters that set more than one shadow property.